﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    /// <summary>
    /// Users:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class Users
    {
        public Users()
        { }
        #region Model
        private int _uid;
        private string _uname;
        private string _pwd;
        private string _question;
        private string _answer;
        private string _email;
        private string _qq;
        private string _phone;
        private int _userroleid = 1;
        private int _userstateid = 1;
        private UserRoles userRole;
        private UserStates userState;

        public UserStates UserState
        {
            get 
            {
                if (userState == null)
                {
                    userState = new UserStates();
                }
                return userState; 
            }
            set { userState = value; }
        }
        public UserRoles UserRole
        {
            get 
            {
                if (userRole == null)
                {
                    userRole = new UserRoles();
                }
                return userRole; 
            }
            set { userRole = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        public int UId
        {
            set { _uid = value; }
            get { return _uid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string UName
        {
            set { _uname = value; }
            get { return _uname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Pwd
        {
            set { _pwd = value; }
            get { return _pwd; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Question
        {
            set { _question = value; }
            get { return _question; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Answer
        {
            set { _answer = value; }
            get { return _answer; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string QQ
        {
            set { _qq = value; }
            get { return _qq; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Phone
        {
            set { _phone = value; }
            get { return _phone; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int UserRoleId
        {
            set { _userroleid = value; }
            get { return _userroleid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int UserStateId
        {
            set { _userstateid = value; }
            get { return _userstateid; }
        }
        #endregion Model

    }
}
